package com.heima.zuoye.day08.timu2;

import java.sql.SQLOutput;
import java.util.HashMap;
import java.util.function.BiConsumer;

public class Student {
    public static void main(String[] args) {
        HashMap<String, String> map = new HashMap<>();
        HashMap<String, String> map1 = new HashMap<>();
        map.put("001", "李晨");
        map.put("002", "范冰冰");
        map1.put("001", "马云");
        map1.put("002", "马化腾");
        System.out.println(map);
        System.out.println(map1);
        HashMap<HashMap, HashMap> map2 = new HashMap<>();
        map2.put(map, map1);
        System.out.println(map2);
        map2.forEach(new BiConsumer<HashMap, HashMap>() {
            @Override
            public void accept(HashMap hashMap, HashMap hashMap2) {
                hashMap.forEach(new BiConsumer() {
                    @Override
                    public void accept(Object o, Object o2) {
                        System.out.println(o + ":" + o2);
                    }
                });
                hashMap2.forEach(new BiConsumer() {
                    @Override
                    public void accept(Object o, Object o2) {
                        System.out.println(o + ":" + o2);
                    }
                });
            }
        });
    }
}
